<!DOCTYPE html>
<html>
<head>
    <title>系统日志</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("sysoptionlog:info"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</i-button>
                #end
                #if($shiro.hasPermission("sysoptionlog:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="sysOptionLog" :rules="ruleValidate" :label-width="80">
            <Form-item label="用户名" prop="username">
                <i-input v-model="sysOptionLog.username" placeholder="用户名"/>
            </Form-item>
            <Form-item label="用户操作" prop="operation">
                <i-input v-model="sysOptionLog.operation" type="textarea" :autosize="true" placeholder="用户操作"/>
            </Form-item>
            <Form-item label="请求方法" prop="method">
                <i-input v-model="sysOptionLog.method" placeholder="请求方法"/>
            </Form-item>
            <Form-item label="请求参数" prop="params">
                <i-input v-model="sysOptionLog.params" type="textarea" placeholder="请求参数" />
            </Form-item>
            <Form-item label="IP地址" prop="ip">
                <i-input v-model="sysOptionLog.ip" placeholder="IP地址"/>
            </Form-item>
            <Form-item label="创建时间" prop="createDate">
                <i-input v-model="sysOptionLog.createDate" placeholder="创建时间"/>
            </Form-item>
            <Form-item label="用户编号" prop="userId">
                <i-input v-model="sysOptionLog.userId" placeholder="用户编号"/>
            </Form-item>
            <Form-item label="原数据" prop="userId">
                <i-input v-model="sysOptionLog.former" type="textarea" :autosize="true" placeholder="原数据"/>
            </Form-item>
            <Form-item label="类型" prop="type">
                <i-select v-model="sysOptionLog.type">
                    <i-option :value="1">商城订单</i-option>
                    <i-option :value="2">Spc订单</i-option>
                    <i-option :value="3">奖金订单</i-option>
                    <i-option :value="4">闪兑记录</i-option>
                    <i-option :value="5">用户资产</i-option>
                    <i-option :value="6">用户收益明细</i-option>
                    <i-option :value="7">运动链收益记录</i-option>
                </i-select>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/sys/sysoptionlog.js?_${date.systemTime}"></script>
</body>
</html>